package com.peace.hospital.entity.outpatientdept;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.time.LocalDateTime;

/**
 * <p>
 * 处方表
 * </p>
 *
 * @author 谢晓峰
 * @since 2019-11-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Chargingitems implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 收费详情编号
     */
    @TableId(value = "chaid", type = IdType.AUTO)
    private Integer chaid;

    /**
     * 员工编号
     */
    private Integer staid;

    /**
     * 收费类型ID
     */
    private Integer parchargeitemid;

    /**
     * 病人id
     */
    private Integer pid;

    /**
     * 收费名称
     */
    private String chaname;

    /**
     * 开具时间
     */
    private Timestamp chastarttime;
    /**
     * 收费状态*/
    private Integer chastate;

    /**
     * 备注
     */
    private String charemarks;

    /**
     * 费用
     */
    private BigDecimal chacost;

    /**收费单价*/
    @TableField(exist = false)
    private Double unitPrice;

    @Override
    public String toString() {
        return "Chargingitems{" +
                "chaid=" + chaid +
                ", staid=" + staid +
                ", parchargeitemid=" + parchargeitemid +
                ", pid=" + pid +
                ", chaname='" + chaname + '\'' +
                ", chastarttime=" + chastarttime +
                ", chastate=" + chastate +
                ", charemarks='" + charemarks + '\'' +
                ", chacost=" + chacost +
                ", unitPrice=" + unitPrice +
                ", chadbsource='" + chadbsource + '\'' +
                '}';
    }

    public Double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(Double unitPrice) {
        this.unitPrice = unitPrice;
    }

    /**
     * 收费数据库名
     */
    private String chadbsource;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getChaid() {
        return chaid;
    }

    public void setChaid(Integer chaid) {
        this.chaid = chaid;
    }

    public Integer getStaid() {
        return staid;
    }

    public void setStaid(Integer staid) {
        this.staid = staid;
    }

    public Integer getParchargeitemid() {
        return parchargeitemid;
    }

    public void setParchargeitemid(Integer parchargeitemid) {
        this.parchargeitemid = parchargeitemid;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getChaname() {
        return chaname;
    }

    public void setChaname(String chaname) {
        this.chaname = chaname;
    }

    public Timestamp getChastarttime() {
        return chastarttime;
    }

    public void setChastarttime(Timestamp chastarttime) {
        this.chastarttime = chastarttime;
    }

    public Integer getChastate() {
        return chastate;
    }

    public void setChastate(Integer chastate) {
        this.chastate = chastate;
    }

    public String getCharemarks() {
        return charemarks;
    }

    public void setCharemarks(String charemarks) {
        this.charemarks = charemarks;
    }

    public BigDecimal getChacost() {
        return chacost;
    }

    public void setChacost(BigDecimal chacost) {
        this.chacost = chacost;
    }

    public String getChadbsource() {
        return chadbsource;
    }

    public void setChadbsource(String chadbsource) {
        this.chadbsource = chadbsource;
    }
}
